<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<nav id="sub_menu">
	<sec:authorize access="isAnonymous()">
		<ul>
			<li><a href="<c:url value="/login"/>">로그인</a></li>
			<li><a href="<c:url value="/join"/>">회원가입</a></li>
		</ul>
	</sec:authorize>
	<sec:authorize access="isAuthenticated()">
		<sec:authorize ifAllGranted="ROLE_EMPLOYEE">
			<ul>
				<li><a href="<c:url value="/member/myContent?memberId="/><sec:authentication property="name" />">나의정보</a></li>
				<li><a href="<c:url value="/board/?boardType=1&boardPage=1"/>">공지사항</a></li>
				<li><a
					href="<c:url value="/member/employeeModeList?memberType=4"/>">인사관리</a></li>
				<li><a href="<c:url value="/course/"/>">연수과정</a></li>
				<li><a href="<c:url value="/certification/"/>">자격증관리</a></li>
				<li><a href="<c:url value="/subject/"/>">교과목관리</a></li>
				<li><a href="<c:url value="/board/?boardType=2&boardPage=1"/>">채용기업관리</a></li>
				<li><a href="<c:url value="/board/?boardType=3&boardPage=1"/>">질문게시판</a></li>
				<li><a href="<c:url value="/j_spring_security_logout" />">Logout</a>
			</ul>
		</sec:authorize>

		<sec:authorize ifAllGranted="ROLE_STUDENT">
			<ul>
				<li><a href="<c:url value="/member/myContent?memberId="/><sec:authentication property="name" />">나의정보</a></li>
				<li><a href="<c:url value="/board/?boardType=1&boardPage=1"/>">공지사항</a></li>
				<li><a href="<c:url value="/course/"/>">교육과정</a></li>
				<li><a href="<c:url value="/board/?boardType=2&boardPage=1"/>">채용기업</a></li>
				<li><a href="<c:url value="/board/?boardType=3&boardPage=1"/>">질문게시판</a></li>
				<li><a href="<c:url value="/j_spring_security_logout" />">Logout</a>
			</ul>
		</sec:authorize>
		<sec:authorize ifAllGranted="ROLE_TEACHER">
			<ul>
				<li><a href="<c:url value="/member/myContent?memberId="/><sec:authentication property="name" />">나의정보</a></li>
				<li><a href="<c:url value="/board/?boardType=1&boardPage=1"/>">공지사항</a></li>
				<li><a href="<c:url value="/course/"/>">교육과정</a></li>
				<li><a
					href="<c:url value="/member/teacherModeList?memberType=3"/>">수강생정보</a></li>
				<li><a href="<c:url value="/board/?boardType=3&boardPage=1"/>">질문게시판</a></li>
				<li><a href="<c:url value="/j_spring_security_logout" />">Logout</a>
			</ul>
		</sec:authorize>
	</sec:authorize>
</nav>